<?php
    session_start();
    
	//Fungsi selected menu 
	function selectedMenu($judul){
		$file = $_SERVER['PHP_SELF'];
		$info = pathinfo($file);
		$file_name =  basename($file,'.'.$info['extension']);
		$menu = explode('-',$file_name);
		if($menu[0] == $judul){
			echo "class='active'";
		}
	}
	
    //echo $_SERVER['SCRIPT_NAME'];
    $_SESSION['sim'] = 12; //$_COOKIE['c_sim'];
    $_SESSION['id_user'] = 1; //$_COOKIE['c_iduser_g'];
    $_SESSION['role'] = 2; //$_COOKIE['c_idrole_g'];
    $_SESSION['login'] = 1; //$_COOKIE['c_islogin_x'];
?>